from django.db import models

# Create your models here.


class Student(models.Model):
    username = models.CharField(max_length=50)
    password = models.CharField(max_length=50)

    def __str__(self):
        return self.username


class Course(models.Model):
    title = models.CharField(max_length=100)
    content = models.TextField()
    student = models.ManyToManyField(Student, null=True, blank=True)

    def __str__(self):
        return self.title
